﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Web;
using Bricks.Component.Utils;

namespace Bricks.Business.Models.Systems
{
    /// <summary>
    /// 实体类——字典
    /// </summary>
    [Description("字典")]
    public class Dictionary : EntityBase<Guid>
    {
        public Dictionary()
        {
            ID = GuidHelper.NewGuid();
        }

        [StringLength(50)]
        [Display(Name = "字典名称")]
        public string DictionaryName { get; set; }

        [StringLength(50)]
        [Display(Name = "标识")]
        public string Tag { get; set; }

        [Display(Name = "字典类型ID")]
        public Guid DictionaryTypeID { get; set; }

        [StringLength(1024)]
        [Display(Name = "描述")]
        public string Description { get; set; }

        [Display(Name = "排序")]
        public int OrderNo { get; set; }
    }
}
